import request from '@/utils/request'

// 挂租列表
export function listRent(query) {
  return request({
    url: '/system/rental-room-info/list',
    method: 'get',
    params: query
  })
}

// 删除挂租
export function delRent(data) {
  return request({
    url: '/system/rental-room-info/delete',
    method: 'post',
	data:data
  })
}

// 新增挂租
export function insertRent(data) {
  return request({
    url: '/system/rental-room-info/insert',
    method: 'post',
	data:data
  }) 
}

// 编辑挂租
export function editRent(data) {
  return request({
    url: '/system/rental-room-info/edit',
    method: 'post',
	data:data
  }) 
}

// 所有挂租
export function allListRent() {
  return request({
    url: '/system/rental-room-info/allList',
    method: 'get'
  }) 
}
